﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.UI
{
    /// <summary>
    /// 事件类型
    /// </summary>
    public class MouseEventType
    {
        /// <summary>
        /// 鼠标左键按下
        /// </summary>
        public static readonly MouseEventType MouseLeftDown = new MouseEventType("LeftMouseDown", "鼠标左键按下");

        public static MouseEventType Get(string name)
        {
            if (MouseLeftDown.Name.ToUpper() == name.ToUpper())
            {
                return MouseLeftDown;
            }
            return new MouseEventType(name, name);
        }

        public string Name { get; private set; }
        public string Capiton { get; private set; }

        public MouseEventType(string name, string caption)
        {
            this.Name = name;
            this.Capiton = caption;
        }
    }
}
